﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Teein.Proxy.Bot.Model;
using Teein.Proxy.Bot.DAL;
using MongoDB.Driver;

namespace Teein.Proxy.Bot.BLL
{
    public class IPProxy
    {
        private ProxyDAL pd = new ProxyDAL();

        public bool Insert(ProxyInfo pi)
        {
            return pd.Insert(pi);
        }

        public bool Update(ProxyInfo pi)
        {
            return pd.Update(pi);
        }

        public bool Delete(ProxyInfo pi)
        {
            return pd.Delete(pi);
        }
        public bool Delete(IMongoQuery mq = null)
        {
            return pd.Delete(mq);
        }
        public ProxyInfo FindOne(IMongoQuery mq = null)
        {
            return pd.FindOne(mq);
        }

        public IList<ProxyInfo> Find(IMongoQuery mq = null)
        {
            
            return pd.Find(mq);
        }
    }
}
